home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2 / DJLSR200.ZIP / src / libc / compat / stdio / mkstemp.txh < prev    next >
Encoding:
Text File  |  1995-07-23  |  758 b   |  31 lines

  1. @node mkstemp, file system
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdio.h>
  6.  
  7. int mkstemp(char *template);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. @var{template} is a file specification that ends with six trailing
  13. @code{X} characters.  This function replaces the @code{XXXXXX} with a
  14. set of characters such that the resulting file name names a nonexisting
  15. file.  It then creates and opens the file. 
  16.  
  17. Note that since MS-DOS is limited to eight characters for the file name,
  18. and since none of the @code{X}'s get replaced by a dot, you can only
  19. have two additional characters before the @code{X}'s. 
  20.  
  21. @subheading Return Value
  22.  
  23. The open file descriptor.
  24.  
  25. @subheading Example
  26.  
  27. @example
  28. int fd = mkstemp("/tmp/ccXXXXXX");
  29. @end example
  30.  
  31.